<include file="Public/head"/>
<body class="no-skin">
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
    <style>
         .grouptd {
             position: relative;
         }

         .group {
             display: inline-block;
             width: 100%;
         }

         .groupselect {
             position: absolute;
             top: 0;
             left: 0;
             width: 100%;
             height: 100%;
             border: 0;
         }
     </style>

               <div class="row">
               <!--  教练排班列表页 -->
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                    <div class="row">
						<div class="space-4"></div>
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <!-- <th class="center"><input class="check-all" type="checkbox" value=""></th> -->
                                        <th class="center">教练姓名</th>
                                        <th class="center">教练手机号</th>
                                        <th class="center">使用车辆</th>
                                        <th class="center">车型</th>
                                        <th class="center">使用的场地</th>
                                        <th class="center">科目</th>
                                        <th class="center">练习类别</th>
                                    </tr>
                                     <tr> 
                                           <td class="center">{$coachInfo['coach_name']}</td>
                                           <td class="center">{$coachInfo['phone']}</td>
                                           <td class="center">{$coachInfo['car_num']}</td>
                                           <td class="center">{$coachInfo['type']}</td>
                                           <td class="center">{$coachInfo['site']}</td>
                                           <td class="center">
                                            	<if condition="$coachInfo['course'] eq 1">科目二</if>
                                            	<if condition="$coachInfo['course'] eq 2">科目三</if>
                                           </td>
                                           <td class="center">
                                            	<if condition="$coachInfo['category'] eq 1">普通</if>
                                            	<if condition="$coachInfo['category'] eq 2">模拟</if>
                                           </td>
                                       </tr>
                                        
                                        <tr>
                                        		<td  colspan='7' class="center" style='color:green;font-size:16px;'>排班详情</td>
                                        </tr>
                                        <tr>
                                         <th class="center">序号</th>
                                        <th class="center" colspan="2">时间段</th>
                                        <th class="center">价格（单位：元）</th>
                                        <th class="center" colspan="3">状态</th>
                                    </tr>
                                    	</thead>
                                        <tbody>
                                        <volist name="date" id="val" key='key'>
										<tr> 
                                            <td colspan='7' class="center">{$val['date']|date='Y-m-d',###}</td>
                                        </tr>
                                         <volist name="val.time" id="v" key='k'>
                                        <tr> 
                                        	<td class="center">{$k}</td>
                                            <td class="center" colspan="2">{$v['time']}</td>
                                            <td class="center">{$v['price']}</td>
                                            <td class="center" colspan="3">
											<if condition="$v['date_status'] eq 0">已取消排班</if>
                                            <if condition="$v['date_status'] eq 1">未预约</if>
                                            <if condition="$v['date_status'] eq 3">已预约（未支付）</if>
                                            <if condition="$v['date_status'] eq 4">已预约（已支付）</if>
                                            </td>
                                         </tr>
                                            </volist>
                                        </volist>                                  
                                    </tbody>
                                </table>
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
<script src="__PUBLIC__/qwadmin/js/jquery-1.9.1.min.js"></script>
<!-- inline scripts related to this page -->
<script type="text/javascript">
$(function(){
	window.print();
	history.back();
})
</script>
</body>
</html>
